<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //两个状态  第一个为成功状态,第二个为失败后的处理
        //不出现状态则then不执行,不产生微任务
        new Promise((resolve,reject)=>{

        }).then(
            resolve=>{

            },
            reject=>{

            }
        )
    </script>
</body>
</html>